#include<stdio.h>

int areDistinct(int * arr,int length){
	int index1 = 0;
	int index2 = 0;
	for(;index1 < length;++index1){

		for(index2 = index1 + 1; index2 < length; ++index2){
			// 找到一致的两个数	
			if(arr[index1] == arr[index2]){
		
				return 0;
			}
		}
	}
	return 1;
}
